package com.limox.bishe.http;

public class StringUtil { 
	/**
	 * 判断valueToaken是否有value的值
	 *  
	 * @param valueToken
	 * @param value
	 *            开始字符串
	 * @return
	 */
	public static boolean isValue(String valueToken, String value) {
		if (valueToken.indexOf(value) != -1) {
			return true;
		}
		return false;
	}



	/**
	 *  提取value值
	 * @param valueToken
	 * @param startString
	 * @param endString
	 * @param unStart
	 * @return
	 * id="xhxm">陈纪植同学</span></em>
	 * 
	 * 
	 * 
	 */
	public static String getValue(String valueToken, String startString,
			String endString, int unStart) {
		int start = valueToken.indexOf(startString);
		int end = valueToken.length();
		String tempStr = valueToken.substring(start + unStart, end);
		end = tempStr.indexOf(endString);
		if (end == -1) {
			end = tempStr.length();
		}
		return tempStr.substring(0, end);
	}
	
}
